package com.adou.p2p.service;

import java.util.List;

import com.adou.p2p.domain.entiry.User;
import com.adou.p2p.model.UserValue;
import com.adou.p2p.page.PageResult;

public interface UserService {
	List<UserValue> getUsers();
	
	UserValue getUser(long id);
	
	UserValue createUser(UserValue value);
	
	UserValue updateUser(UserValue value);
	
	void deleteUserId(long id);
	
	PageResult<UserValue> qryUserValuePage(Integer pageNumber, Integer pageSize, String orderColumn,
			String orderClumnSortString, UserValue value);
	
	
	/**
	 * 根据用户名和密码查询用户
	 * @param username
	 * @param password
	 * @return
	 */
	UserValue findByUsernameAndPassword(String username, String password);
	
}
